package demo1;


public class Test1 {
    public static int a;
    public static void func2() {
        System.out.println("static修饰成员方法。");
    }

    public static void main(String[] args) {
        Test1 test1 = new Test1();
        test1.func();
        int j = test1.func();
        System.out.println(j);
    }

    public int func() {
        /*static int b = 0;//报错
        b++;*/
        return -1;
    }
}
